u = 6
n = 54

if n>=2*u and n<=4*u and n%2==0:
    x = int((n-2*u)/2)
    y = int(u-x)
    print(x,y)
else:
    print(5555555555555555555)